<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .td_center {
            text-align: center;
        }
    </style>
</head>
<body>
<script src="TableUtil.js"></script>
<script>
    let books = [
        {id: 1, name: 'Java从入门到放弃', price: 80, createDate: '2020-07-01', count: 1},
        {id: 2, name: 'Vue从入门到放弃', price: 90, createDate: '2020-07-02', count: 1},
        {id: 3, name: 'Mysql从入门到放弃', price: 100.01, createDate: '2020-07-03', count: 1},
        {id: 4, name: '啥都从入门到放弃', price: 70.0001, createDate: '2020-07-04', count: 1},
        {id: 5, name: 'JavaScript从入门到放弃', price: 60.00, createDate: '2020-07-04', count: 1},
        {id: 6, name: 'JavaScript从入门到放弃', price: 50.00, createDate: '2020-07-04', count: 1}
    ];
    let titles = ["<input type='checkbox' value='1' name='cb_select_all'>", "序号", "书名", "日期", "单价", "数量", "操作"];

    createTable(titles, books);

</script>
</body>
</html>